;(function () {
  'use strict';
  angular.module('controllers.alarmDataAnalysis.abnormalTransDataMining')
    .controller('sumRuleByAlaOTCtrl', sumRuleByAlaOTCtrl);

  function sumRuleByAlaOTCtrl($scope, CoreService,sumRuleByAlaOTService,$mdDialog,COREDATA) {
    $scope.sumRuleByAlaOT = sumRuleByAlaOTService;
    sumRuleByAlaOTService.initSelectMenu();   //初始化页面下拉框数据
    $scope.exportUrl = COREDATA.FORMPREFIX + 'abnormalTrans/dataMining/sumRuleByAlaOutbreakTime/exportExcelData';
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      sumRuleByAlaOTService.reset();
      $mdDialog.hide();
    });
  }
  sumRuleByAlaOTCtrl.$inject = ['$scope','CoreService','sumRuleByAlaOTService','$mdDialog','COREDATA'];
})();